-
Notifications
You must be signed in to change notification settings - Fork 267
feat: Add partial support for from_json
#2934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2934 +/- ##
============================================
+ Coverage 56.12% 59.60% +3.47%
- Complexity 976 1381 +405
============================================
Files 119 167 +48
Lines 11743 15493 +3750
Branches 2251 2568 +317
============================================
+ Hits 6591 9234 +2643
- Misses 4012 4959 +947
- Partials 1140 1300 +160 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
from_json [WIP]from_json
|
This is awesome ! I believe we have an unwanted cargo.lock file in the PR @andygrove |
The |
mbutrovich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly comment nits. Thanks @andygrove!
mbutrovich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @andygrove! This will be a great expression to support.
|
Thanks @andygrove great start, it doesn't support nested structs? |
It does support nested structs. See |
comphead
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also have a test with valid json and wrong schema?
comphead
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @andygrove 💪
|
Thanks for the reviews @mbutrovich and @comphead. I went ahead and merged despite the Spark 4 / hive-1 test failure which is happening on many PRs now. I filed #2946 to get this resolved. The test is not related to |
Which issue does this PR close?
N/A
Rationale for this change
from_jsonis a widely used Spark SQL function.What changes are included in this PR?
from_jsonfor structs and a handful of primitive types.What changes are NOT included in this PR?
How are these changes tested?
New tests.
Benchmark Results